//
//  ByViewMyOrderSearchHeader.m
//  mijifen_ios
//
//  Created by 朱凯 on 2017/11/25.
//  Copyright © 2017年 itboye. All rights reserved.
//

#import "ByViewMyOrderSearchHeader.h"

@implementation ByViewMyOrderSearchHeader

- (instancetype)initWithFrame:(CGRect)frame {
    
    if (self = [super initWithFrame:frame]) {
    
        [self setupUI];
    }
    return self;
}
- (void)setupUI {
    
    UILabel *historyLabel = [[UILabel alloc] init];
    historyLabel.text = @"历史记录";
    historyLabel.font = FONT(14);
    historyLabel.textAlignment = NSTextAlignmentCenter;
    historyLabel.textColor = [UIColor lightGrayColor];
    [self addSubview:historyLabel];
    
    
    UIButton *deleteButton = [UIButton buttonWithType:UIButtonTypeCustom];
    [deleteButton addTarget:self action:@selector(delete) forControlEvents:UIControlEventTouchUpInside];
    [self addSubview:deleteButton];
    
    
    [historyLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@10);
        make.top.bottom.equalTo(@0);
    }];
}

- (void)delete {
    
}
@end
